package cate.game.train.kitchenware.msg;

import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBTrain;
import easy.java.dev.note.NoteField;

import java.util.Set;

@ClientMsg(title = "厨具分解的请求")
@OperationSetter(GDOperation.KITCHENWARE_DECOMPOSE)
public class KitchenwareDecomposeReq implements MsgInput {
    @NoteField("要分解的厨具uid")
    public Set<String> kitchenwareUids;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        game.train.kitchenware.decompose(cc.getRole(), kitchenwareUids);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBTrain.KITCHENWARE_DECOMPOSE_REQ;
    }
}
